<template>
  <a-form layout="vertical" :form="form">
    <a-form-item label="学科简介" :labelCol="{span: 4,offset: 1}" :wrapperCol="{span: 19}">
      <a-input type="textarea" v-decorator="['xkjj',
        {
          rules: [{ required: true, message: '请填写学科简介!' }],
        }]" :autosize="{ minRows: 4, maxRows: 6 }"/>
    </a-form-item>
    <a-form-item label="培养目标" :labelCol="{span: 4,offset: 1}" :wrapperCol="{span: 19}">
      <a-input type="textarea" v-decorator="['pymb',
        {
          rules: [{ required: true, message: '请填写培养目标!' }],
        }]" :autosize="{ minRows: 4, maxRows: 6 }"/>
    </a-form-item>
    <a-form-item label="修业年限" :labelCol="{span: 4,offset: 1}" :wrapperCol="{span: 19}">
      <a-select v-decorator="['xynx',
        {
          rules: [{ required: true, message: '请选择修业年限!' }],
        }]">
        <a-select-option v-for="i in TYPE0301" :key="i.id" :value="i.code">{{ i.name }}</a-select-option>
      </a-select>
    </a-form-item>
    <a-form-item label="说明" :labelCol="{span: 4,offset: 1}" :wrapperCol="{span: 19}">
      <a-input type="textarea" v-decorator="['xynxsm',
        {
          rules: [{ required: true, message: '请填写修业年限说明!' }],
        }]" :autosize="{ minRows: 4, maxRows: 6 }"/>
    </a-form-item>
    <a-form-item label="研究方向" :labelCol="{span: 4,offset: 1}" :wrapperCol="{span: 19}">
      <a-input type="textarea" v-decorator="['yjfx',
        {
          rules: [{ required: true, message: '请填写研究方向!' }],
        }]" :autosize="{ minRows: 4, maxRows: 6 }"/>
    </a-form-item>
    <a-form-item label="学位论文" :labelCol="{span: 4,offset: 1}" :wrapperCol="{span: 19}">
      <a-input type="textarea" v-decorator="['xwlwsm',
        {
          rules: [{ required: true, message: '请填写学位论文!' }],
        }]" :autosize="{ minRows: 4, maxRows: 6 }"/>
    </a-form-item>
    <a-form-item label="培养方式与方法" :labelCol="{span: 4,offset: 1}" :wrapperCol="{span: 19}">
      <a-input type="textarea" v-decorator="['pyfsyff',
        {
          rules: [{ required: true, message: '请填写培养方式与方法' }],
        }]" :autosize="{ minRows: 4, maxRows: 6 }"/>
    </a-form-item>
  </a-form>
</template>

<script>
export default {
  props: ['TYPE0301'],
  data () {
    return {
      form: this.$form.createForm(this)
    }
  }
}
</script>

<style>

</style>
